package com.taxi.driver.module.recruit;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.taxi.driver.R;
import com.taxi.driver.common.AppConfig;
import com.taxi.driver.common.BaseActivity;
import com.taxi.driver.module.web.WebActivity;
import com.taxi.driver.util.Navigate;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 司机招募  {有车加入，无车加入}
 * Created by Curry on 2018/5/9.
 */

public class DriverCruitActivity extends BaseActivity
{
    @BindView(R.id.bt_join)
    Button bt_join;
    @BindView(R.id.bt_join2)

    Button bt_nocar_join;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.driver_recruit);
        ButterKnife.bind(this);

    }
    @OnClick({R.id.bt_join, R.id.bt_join2,})
    public void onClick(View view) {
                switch (view.getId()){
                    case R.id.bt_join:
                        Navigate.openDriverInfoEntryView(this);
                        break;
                    case R.id.bt_join2://无车加入
                        String url = AppConfig.HOST + "/h5/driver/register.yueyue" +
                                "?appid=" + AppConfig.YUEYUE_APPKEY +
                                "&type=" + AppConfig.getCarType();
                        WebActivity.actionStart(this, url, "司机申请");
                        break;
                }
    }


}
